/*
 * react-router-dom v6 官方文档
 * https://reactrouter.com/en/v6.3.0/getting-started/installation
 */
// import React from 'react';
import SuspenseLazy from '@/components/Suspenselazy';
import {RouteObject} from 'react-router-dom';

const About = SuspenseLazy(() => import(/* webpackChunkName:"about" */ '@/view/About'));
const Workstation = SuspenseLazy(() => import(/*webpackChunkName: "workstation" */ '@/view/Workstation'));

const routes: RouteObject[] = [
    {
        path: '/',
        element: Workstation // 重定向
    },
    {
        path: '*',
        element: About
    }
];

export default routes;
